<admintpl file="header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">用户列表</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Member/lists')}">
        用户账号：
        <input type="text" name="username" style="width: 100px;" value="{$formget.username}" placeholder="请输入用户名">
        用户昵称：
        <input type="text" name="nickname" style="width: 150px;" value="{$formget.nickname}" placeholder="请输入用户昵称">
        注册时间：
        <input type="text" class="js-date" name="start_time" style="width: 120px;" value="{$formget.start_time}" placeholder="">&nbsp;
        至:&nbsp;
        <input type="text" class="js-date" name="end_time" style="width: 120px;" value="{$formget.end_time}" placeholder="">
        <input type="submit" class="btn btn-primary" value="搜索"/>
    </form>
    <h4 style="float: left;">当前条件下用户人数为：{$count}人</h4>

    <table style="margin-top: 10px;word-break:break-all;" class="table table-hover table-bordered table-list"
           id="menus-table">
        <thead>
        <tr>
            <th>序号</th>
            <th>用户名</th>
            <th>手机号</th>
            <th>昵称</th>
            <th>注册时间</th>
            <!--<th>ip</th>-->
            <th>上次登录</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        {$categorys}
        </tbody>
    </table>
    <div class="pagination">{$Page}</div>
</div>

<div>
    <div id="myModal_2" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
            <h3 id="myModalLabel">推送消息</h3>
        </div>
        <form action="{:U('Member/PushMsg')}" method="post"
              class="form-horizontal js-ajax-form">
            <div class="modal-body">
                <table>
                    <tbody>
                    <tr>
                        <td>推送账号：</td>
                        <input type="hidden" name="mid" class="id" value="">
                        <td><div id="username_msg"></div></td>
                    </tr>
                    <tr>
                        <td>消息内容：</td>
                        <td><textarea type="text" name="content" value=""></textarea><span>&nbsp;*</span></td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="modal-footer">
                <button class="btn" data-dismiss="modal" aria-hidden="true">关闭</button>
                <button type="submit" class="btn btn-primary ">保存</button>
            </div>
        </form>
    </div>



    <script src="__PUBLIC__/js/common.js"></script>
    <script>
        $(".hidden").hide();
        $('.add_ext').click(function () {
            var id = $(this).attr("name");
            var div = $(this).attr("cool");

            $(".id").val(id);
            $("#username_d").html(div);
            $("#username_d_remarks").html(div);
        });
        $('.add_ext_2').click(function () {
            var id = $(this).attr("name");
            var div = $(this).attr("cool");

            $(".id").val(id);
            $("#username_msg").html(div);
        });
    </script>


    <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>